//
//  LSZLyricBooksManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/4.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZLyricBooksManager.h"

@implementation LSZLyricBooksManager
-(id)initWithLyricBooks :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.mutMgArray  = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * arrayMg = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in arrayData) {
            LSZLyricBooksMg * mg = [[LSZLyricBooksMg alloc]init];
            mg.id_id = NullStringjudgment(NSStr(diction[@"id"]));
            mg.status = NullStringjudgment(NSStr(diction[@"status"]));
            mg.album = NullStringjudgment(NSStr(diction[@"album"]));
            mg.beat = NullStringjudgment(NSStr(diction[@"beat"]));
            mg.author = NullStringjudgment(NSStr(diction[@"author"]));
            mg.click = NullStringjudgment(NSStr(diction[@"click"]));
            mg.addtime = NullStringjudgment(NSStr(diction[@"addtime"]));
            mg.position = NullStringjudgment(NSStr(diction[@"position"]));
            mg.img = NullStringjudgment(NSStr(diction[@"img"]));
            mg.type = NullStringjudgment(NSStr(diction[@"type"]));
            mg.tone_mark = NullStringjudgment(NSStr(diction[@"tone_mark"]));
            mg.musical = NullStringjudgment(NSStr(diction[@"musical"]));
            mg.real_click = NullStringjudgment(NSStr(diction[@"real_click"]));
            mg.sort_order = NullStringjudgment(NSStr(diction[@"sort_order"]));
            mg.add_time = NullStringjudgment(NSStr(diction[@"add_time"]));
            mg.album_id = NullStringjudgment(NSStr(diction[@"album_id"]));
            mg.name = NullStringjudgment(NSStr(diction[@"name"]));
            mg.url = NullStringjudgment(NSStr(diction[@"url"]));
            [arrayMg addObject:mg];
        }
        self.mutMgArray = arrayMg;
    }

    return self;
}
@end
@implementation LSZLyricBooksMg
@end
